package a06_InterfaceClass;

/**
 * @Author quan
 * @Description TODO
 * @Date 2023/1/28 23:29
 */
public class Rabbit extends Animal{

    public Rabbit() {
    }

    public Rabbit(String name, int age) {
        super(name, age);
    }

    //重写eat方法
    @Override
    public void eat() {
        System.out.println("兔子在吃胡萝卜");
    }
}
